package com.ruoyi.project.hcy.administrations.service.Impl;

import com.ruoyi.project.hcy.administrations.domain.Approve;
import com.ruoyi.project.hcy.administrations.mapper.ApproveMapper;
import com.ruoyi.project.hcy.administrations.service.IApproveService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName ApproveServiceImpl
 * @Author 金刚芭比
 * @Date 2020/9/17 10:51
 * @Version 1.0
 */
@Service
public class ApproveServiceImpl implements IApproveService {

    @Autowired
    private ApproveMapper approveMapper;

    @Override
    public List<Approve> selectApproveList(String approveStatus) {
        return approveMapper.selectApproveList(approveStatus);
    }

    @Override
    public Approve selectApproveById(Integer approveId) {
        return approveMapper.selectApproveById(approveId);
    }

    @Override
    public int updateApproveStatus(Approve approve) {
        return approveMapper.updateApproveStatus(approve);
    }
}
